package week01;

public class T0051 {
	public static int gcd(int x,int y) {
		while(y!=0) {
			int temp=x%y;
			x=y;
			y=temp;
		}
		return x;
	}
	
	public static int lcm(int x,int y) {
		return x/gcd(x, y)*y;
	}
	public static void main(String[] args) {
		int sum=1;
		for(int i=2;i<=20;i++) {
			sum = lcm(sum, i);
		}
		System.out.println(sum);
	}
}
